package org.luckyjourney.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.luckyjourney.entity.Comment;

/**
* @author 86155
* @description 针对表【comment(评论表)】的数据库操作Mapper
* @createDate 2024-03-08 09:16:04
* @Entity entity.org.luckyjourney.Comment
*/
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    @Update("update comment set content = #{content},nick_name=#{nickName},create_time=#{createTime},parent_id=#{parentId},parent_nickName=#{parentNickName},video_id=#{videoId},avatar=#{avatar},user_id=#{userId},ip_address=#{ipAddress} where id = #{id}")
    void updateComment(Comment comment);
}




